import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const TCHYURL = BASEURL.TCHYURL
const orderManagementApi = {
      //承运订单列表
      getOrderList(params){
        let url = TCHYURL + '/order/platformOrder/listShipper'
        return myaxios.get(url, params)
    },
    //撮合订单列表
    queryList(params) {
        let url = TCHYURL + '/order/order/matchmaking_order_list'
        return myaxios.get(url,params)
    },
    //撮合订单详情
    getOrderDetails(params) {
        let url = TCHYURL + '/order/order/matchmaking_order_list/orderDetail'
        return myaxios.get(url,params)
    },

    //撮合订单取消订单
    cancelOrder(params) {
        let url = TCHYURL + '/order/order/matchmaking_order/cancelOrder'
        return myaxios.get(url,params)
    },

    //承运订单部分
    //承运订单取消 及 批量取消
    deleteCarrierOrder(params) {
        let url = TCHYURL + '/order/platformOrder/orderCancel'
        return myaxios.get(url,params)
    },
    //承运订单详情
    getCarrierOrderDetails(params) {
        let url = TCHYURL + '/order​/platformOrder​/detailShipper'
        return myaxios.get(url,params)
    },

    //承运订单货物明细
    orderGoods(params){
        let url = TCHYURL + '/order/platformOrder/goods'
        return myaxios.get(url,params)
    },
    //撮合结算单 order/order/supplierCargoSettlement
    supplierCargoSettlement(params){
        let url = TCHYURL + '/order/order/supplierCargoSettlement'
        return myaxios.get(url,params)
    },
    //撮合结算单 order/order/supplierCargoSettlement
    supplierDriverSettlement(params){
        let url = TCHYURL + '/order/order/supplierDriverSettlement'
        return myaxios.get(url,params)
    }
}
export default orderManagementApi;